
#coding:utf-8
import requests


#组织数据

datas='[{"menteeId": 33419100,"classId": 151315800,"teacherName": "海风老师","lessonPeriods": 1,"beginTime": "2016-07-05 11:11:10","endTime": "2016-07-05 11:11:10","remark": "备注","partnerType": 1},{"menteeId": 33419100,"classId": 151315800,"teacherName": "海风老师","lessonPeriods": 1,"beginTime": "2016-07-05 11:11:10","endTime": "2016-07-05 11:11:10","remark": "备注","partnerType": 1}]'


headers={'Content-Type':'application/json','Hujiang-sign':'MD5_32(HJAPPSECRET+HJAPPkey+post记录条数)','HJAPPSECRET':'a2f1e22a0dd54e5050181b037a7cfc06','HJAPPkey':'haifeng'}

r=requests.post('http://qateachertest.hjapi.com/v1/Cooperation/lessons',headers=headers)
print r.content